<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let vue = {
        created:function(){//this 的指向是一致的     =>vue
            console.log(this);
        },
        created2(){//this 的指向是一致的             =>vue
            console.log(this);
        },
        created3:()=>{  //this会向上级function 绑定  =>window
            console.log(this);
        }
    }

    vue.created();
    vue.created2();
    vue.created3();



</script>
</html>